import time

from selenium.webdriver.common.by import By
from selenium.webdriver.firefox.service import Service as FirefoxService
# 自动下载对应的驱动
from selenium import webdriver
from webdriver_manager.firefox import GeckoDriverManager

driver = webdriver.Firefox(service=FirefoxService(GeckoDriverManager().install()))
#最大化窗口
driver.maximize_window()
driver.get("https://www.iviewui.com/view-ui-plus/component/form/radio")

for ele in driver.find_elements(By.XPATH,"//input[@class='ivu-radio-inner' and type='radion']"):
    ele.click()
time.sleep(10)
driver.close()